var myapp=angular.module('app',[]);
myapp.controller('mydiscoverctr',['$scope','$http',function($scope,$http){
    $http({
        url:'/api/discover/get',
        method:'get'
    }).then(function(data){
        console.log(data);
        $scope.discoverUi= data.data.data.data[0].data;
        //console.log($scope.discoverUi);
        $scope.discoverTop=data.data.data.data;
        console.log($scope.discoverTop);
    })
}]);